package Demo;

public class Demo38 {
    public static void main(String[] args) {
        a aa = (a, b) -> a + b;
        System.out.println(aa.send1(10, 20));

    }
}

@FunctionalInterface
interface a {
    int send1(int a, int b);
    /*public static a fun(){
            return new a(){
                @Override
                public void send1() {
                    System.out.println("++++1");
                }
                public  void send(){
                    System.out.println("------1");
                }
            };
    };*/
}